package com.iwhalecloud.bss.kite.cucc.service.scene.query;

import com.iwhalecloud.bss.kite.client.api.scene.query.IQuerySceneService;
import com.iwhalecloud.bss.kite.manager.api.IQuerySceneInstService;
import com.iwhalecloud.bss.kite.manager.enums.InstType;
import com.iwhalecloud.bss.kite.manager.inst.KiteSceneInst;
import com.iwhalecloud.bss.kite.manager.inst.change.KiteInstChange;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <Description> <br>
 *
 * @author huang.caibiao<br>
 * @version 1.0<br>
 * @taskId <br>
 * @date 2019-06-29 <br>
 * @since R9.0<br>
 * @see com.iwhalecloud.bss.kite.service.scene.query <br>
 */
@Service("querySceneService")
public class QuerySceneService implements IQuerySceneService {

    @Autowired
    private IQuerySceneInstService querySceneInstService;

    @Override
    public KiteSceneInst getSceneInst(String sceneInstId) {
        return querySceneInstService.getSceneInst(sceneInstId);
    }

    @Override
    public KiteSceneInst getSceneInst(String sceneInstId, String custId) {
        return querySceneInstService.getSceneInst(sceneInstId, custId);
    }

    @Override
    public List<KiteInstChange> listInstChanges(String sceneInstId, InstType instType, String instId) {
        return querySceneInstService.listInstChanges(sceneInstId, instType, instId);
    }

    @Override
    public List<KiteInstChange> listInstChanges(String sceneInstId) {
        return querySceneInstService.listInstChanges(sceneInstId);
    }

    @Override
    public List<KiteInstChange> listInstChangesByInstType(String sceneInstId, InstType instType) {
        return querySceneInstService.listInstChanges(sceneInstId, instType);
    }
}
